/*
 * RegistroActividad.java
 *
 * Created on __DATE__, __TIME__
 */

package cl.pelu.operacion;

import java.beans.PropertyVetoException;

/**
 *
 * @author  __USER__
 */
public class RegistroActividad extends javax.swing.JInternalFrame {

	private static RegistroActividad myInstance;

	/** Creates new form RegistroActividad */
	public RegistroActividad() {
		initComponents();
	}

	/** This method is called from within the constructor to
	 * initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is
	 * always regenerated by the Form Editor.
	 */
	//GEN-BEGIN:initComponents
	// <editor-fold defaultstate="collapsed" desc="Generated Code">
	private void initComponents() {

		numeroActividadLabel = new javax.swing.JLabel();
		numeroActividadTextField = new javax.swing.JTextField();
		registroActividadLabel = new javax.swing.JLabel();
		nombreServicioLabel = new javax.swing.JLabel();
		fechaTextField = new javax.swing.JTextField();
		descripcionLabel = new javax.swing.JLabel();
		montoTextField = new javax.swing.JTextField();
		montoLabel = new javax.swing.JLabel();
		materialesTextField = new javax.swing.JTextField();
		materialesLabel = new javax.swing.JLabel();
		numeroTinturaLabel = new javax.swing.JLabel();
		numeroVolumenLabel = new javax.swing.JLabel();
		numeroTinturaComboBox = new javax.swing.JComboBox();
		numeroVolumenComboBox = new javax.swing.JComboBox();
		guardarButton = new javax.swing.JButton();
		eliminarButton = new javax.swing.JButton();
		fechaLabel = new javax.swing.JLabel();
		nombreServicioTextField = new javax.swing.JTextField();
		salirButton = new javax.swing.JButton();
		jScrollPane1 = new javax.swing.JScrollPane();
		descripcionTextArea = new javax.swing.JTextArea();

		setClosable(true);

		numeroActividadLabel.setFont(new java.awt.Font("Ubuntu", 0, 18));
		numeroActividadLabel.setText("numero actividad");

		numeroActividadTextField.setEditable(false);
		numeroActividadTextField.setText("123");

		registroActividadLabel.setFont(new java.awt.Font("Ubuntu", 1, 18));
		registroActividadLabel.setText("Registro Actividad");

		nombreServicioLabel.setFont(new java.awt.Font("Ubuntu", 0, 18));
		nombreServicioLabel.setText("nombre servicio");

		descripcionLabel.setFont(new java.awt.Font("Ubuntu", 0, 18));
		descripcionLabel.setText("descripcion");

		montoLabel.setFont(new java.awt.Font("Ubuntu", 0, 18));
		montoLabel.setText("monto");

		materialesLabel.setFont(new java.awt.Font("Ubuntu", 0, 18));
		materialesLabel.setText("materiales");

		numeroTinturaLabel.setFont(new java.awt.Font("Ubuntu", 0, 18));
		numeroTinturaLabel.setText("numero tintura");

		numeroVolumenLabel.setFont(new java.awt.Font("Ubuntu", 0, 18));
		numeroVolumenLabel.setText("numero de volumen");

		numeroTinturaComboBox.setModel(new javax.swing.DefaultComboBoxModel(
				new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9",
						"10", "11", "12" }));

		numeroVolumenComboBox.setModel(new javax.swing.DefaultComboBoxModel(
				new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9",
						"10", "11", "12" }));

		guardarButton.setText("guardar");

		eliminarButton.setText("eliminar");

		fechaLabel.setFont(new java.awt.Font("Ubuntu", 0, 18));
		fechaLabel.setText("fecha");

		salirButton.setText("salir");
		salirButton.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				salirButtonActionPerformed(evt);
			}
		});

		descripcionTextArea.setColumns(20);
		descripcionTextArea.setRows(5);
		jScrollPane1.setViewportView(descripcionTextArea);

		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(
				getContentPane());
		getContentPane().setLayout(layout);
		layout.setHorizontalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.LEADING)
												.addGroup(
														layout.createSequentialGroup()
																.addGap(57, 57,
																		57)
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.LEADING)
																				.addComponent(
																						registroActividadLabel)
																				.addGroup(
																						layout.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.TRAILING)
																								.addGroup(
																										layout.createSequentialGroup()
																												.addComponent(
																														fechaLabel)
																												.addPreferredGap(
																														javax.swing.LayoutStyle.ComponentPlacement.RELATED,
																														120,
																														Short.MAX_VALUE)
																												.addComponent(
																														fechaTextField,
																														javax.swing.GroupLayout.PREFERRED_SIZE,
																														97,
																														javax.swing.GroupLayout.PREFERRED_SIZE)
																												.addGap(126,
																														126,
																														126))
																								.addGroup(
																										javax.swing.GroupLayout.Alignment.LEADING,
																										layout.createSequentialGroup()
																												.addGroup(
																														layout.createParallelGroup(
																																javax.swing.GroupLayout.Alignment.LEADING)
																																.addComponent(
																																		nombreServicioLabel)
																																.addComponent(
																																		numeroActividadLabel)
																																.addComponent(
																																		descripcionLabel))
																												.addGap(27,
																														27,
																														27)
																												.addGroup(
																														layout.createParallelGroup(
																																javax.swing.GroupLayout.Alignment.LEADING)
																																.addComponent(
																																		numeroActividadTextField,
																																		javax.swing.GroupLayout.PREFERRED_SIZE,
																																		97,
																																		javax.swing.GroupLayout.PREFERRED_SIZE)
																																.addComponent(
																																		jScrollPane1,
																																		javax.swing.GroupLayout.PREFERRED_SIZE,
																																		javax.swing.GroupLayout.DEFAULT_SIZE,
																																		javax.swing.GroupLayout.PREFERRED_SIZE)
																																.addComponent(
																																		nombreServicioTextField,
																																		javax.swing.GroupLayout.PREFERRED_SIZE,
																																		97,
																																		javax.swing.GroupLayout.PREFERRED_SIZE))))))
												.addGroup(
														layout.createSequentialGroup()
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.LEADING)
																				.addGroup(
																						layout.createSequentialGroup()
																								.addGap(123,
																										123,
																										123)
																								.addComponent(
																										guardarButton)
																								.addGap(44,
																										44,
																										44)
																								.addComponent(
																										eliminarButton))
																				.addGroup(
																						layout.createSequentialGroup()
																								.addGap(46,
																										46,
																										46)
																								.addGroup(
																										layout.createParallelGroup(
																												javax.swing.GroupLayout.Alignment.LEADING)
																												.addComponent(
																														numeroVolumenLabel)
																												.addGroup(
																														layout.createSequentialGroup()
																																.addGroup(
																																		layout.createParallelGroup(
																																				javax.swing.GroupLayout.Alignment.LEADING)
																																				.addComponent(
																																						numeroTinturaLabel)
																																				.addGroup(
																																						layout.createSequentialGroup()
																																								.addGap(9,
																																										9,
																																										9)
																																								.addGroup(
																																										layout.createParallelGroup(
																																												javax.swing.GroupLayout.Alignment.LEADING)
																																												.addComponent(
																																														materialesLabel)
																																												.addComponent(
																																														montoLabel))))
																																.addGap(45,
																																		45,
																																		45)
																																.addGroup(
																																		layout.createParallelGroup(
																																				javax.swing.GroupLayout.Alignment.TRAILING)
																																				.addComponent(
																																						materialesTextField,
																																						javax.swing.GroupLayout.PREFERRED_SIZE,
																																						97,
																																						javax.swing.GroupLayout.PREFERRED_SIZE)
																																				.addComponent(
																																						montoTextField,
																																						javax.swing.GroupLayout.PREFERRED_SIZE,
																																						97,
																																						javax.swing.GroupLayout.PREFERRED_SIZE)
																																				.addComponent(
																																						numeroVolumenComboBox,
																																						javax.swing.GroupLayout.PREFERRED_SIZE,
																																						javax.swing.GroupLayout.DEFAULT_SIZE,
																																						javax.swing.GroupLayout.PREFERRED_SIZE)
																																				.addComponent(
																																						numeroTinturaComboBox,
																																						javax.swing.GroupLayout.PREFERRED_SIZE,
																																						javax.swing.GroupLayout.DEFAULT_SIZE,
																																						javax.swing.GroupLayout.PREFERRED_SIZE))))))
																.addGap(48, 48,
																		48)
																.addComponent(
																		salirButton)))
								.addContainerGap(608, Short.MAX_VALUE)));
		layout.setVerticalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addContainerGap()
								.addComponent(registroActividadLabel)
								.addGap(18, 18, 18)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(
														numeroActividadLabel)
												.addComponent(
														numeroActividadTextField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														19,
														javax.swing.GroupLayout.PREFERRED_SIZE))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(
														nombreServicioLabel)
												.addComponent(
														nombreServicioTextField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														19,
														javax.swing.GroupLayout.PREFERRED_SIZE))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(fechaLabel)
												.addComponent(
														fechaTextField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														19,
														javax.swing.GroupLayout.PREFERRED_SIZE))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.LEADING)
												.addComponent(
														jScrollPane1,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(descripcionLabel))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED,
										16, Short.MAX_VALUE)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(
														montoTextField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														19,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(montoLabel))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(
														materialesTextField,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														19,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(materialesLabel))
								.addGap(14, 14, 14)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.TRAILING)
												.addComponent(
														numeroTinturaComboBox,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE)
												.addComponent(
														numeroTinturaLabel))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(
														numeroVolumenLabel)
												.addComponent(
														numeroVolumenComboBox,
														javax.swing.GroupLayout.PREFERRED_SIZE,
														javax.swing.GroupLayout.DEFAULT_SIZE,
														javax.swing.GroupLayout.PREFERRED_SIZE))
								.addPreferredGap(
										javax.swing.LayoutStyle.ComponentPlacement.RELATED)
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(guardarButton)
												.addComponent(eliminarButton)
												.addComponent(salirButton))
								.addGap(76, 76, 76)));

		pack();
	}// </editor-fold>
	//GEN-END:initComponents

	private void salirButtonActionPerformed(java.awt.event.ActionEvent evt) {
			
	}

	//GEN-BEGIN:variables
	// Variables declaration - do not modify
	private javax.swing.JLabel descripcionLabel;
	private javax.swing.JTextArea descripcionTextArea;
	private javax.swing.JButton eliminarButton;
	private javax.swing.JLabel fechaLabel;
	private javax.swing.JTextField fechaTextField;
	private javax.swing.JButton guardarButton;
	private javax.swing.JScrollPane jScrollPane1;
	private javax.swing.JLabel materialesLabel;
	private javax.swing.JTextField materialesTextField;
	private javax.swing.JLabel montoLabel;
	private javax.swing.JTextField montoTextField;
	private javax.swing.JLabel nombreServicioLabel;
	private javax.swing.JTextField nombreServicioTextField;
	private javax.swing.JLabel numeroActividadLabel;
	private javax.swing.JTextField numeroActividadTextField;
	private javax.swing.JComboBox numeroTinturaComboBox;
	private javax.swing.JLabel numeroTinturaLabel;
	private javax.swing.JComboBox numeroVolumenComboBox;
	private javax.swing.JLabel numeroVolumenLabel;
	private javax.swing.JLabel registroActividadLabel;
	private javax.swing.JButton salirButton;

	// End of variables declaration//GEN-END:variables

	public static RegistroActividad getInstance() throws PropertyVetoException {
		if (myInstance == null) {
			myInstance = new RegistroActividad();
		}
		return myInstance;
	}

}